<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
</head>
<body>

</body>
<script>
	// 复杂解构
	let wangFei = {
		name: '王菲',
		age: 18,
		songs: ['红豆', '流年', '暧昧', '传奇'],
		history: [
			{name: '窦唯'},
			{name: '谢霆锋'},
			{name: '李亚鹏'}
		]
	};
	const {name,age,songs:[one,two,three,four],history:[{name:name1},{name:name2},{name:name3}]} = wangFei;
	console.log(name,age,one,two,three,four,name1,name2,name3);// 王菲 18 红豆 流年 暧昧 传奇 窦唯 谢霆锋 李亚鹏
	
	
	// const [a,b,[c,d,{age}],e] =[1,2,[3,4,{age:100}],5];
	// console.log(age);
</script>
</html>